<?php

include("auth.php");
      		
// START -- Get request
$name  = $_GET['name'];
$mail  = $_GET['mail'];
$pass  = $_GET['pw'];

include('../config.php');

// MySQL Server Connection
mysql_connect($host,$username,$password);
mysql_select_db($database);

echo($name.$mail.$pass);

if($pass != ''){
	$result = mysql_query("UPDATE saufanten SET mail ='".$mail."', passHASH = '".$pass."' WHERE name ='".$name."'");
} else {
	$result = mysql_query("UPDATE saufanten SET mail ='".$mail."' WHERE name ='".$name."'");
}

